/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.st.entity;

import org.hibernate.validator.constraints.Length;
import java.math.BigDecimal;
import com.jeesite.common.mybatis.annotation.JoinTable;
import com.jeesite.common.mybatis.annotation.JoinTable.Type;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 价格维护Entity
 * @author HOHD
 * @version 2020-12-08
 */
@Table(name="st_price_maintain", alias="a", columns={
		@Column(name="id", attrName="id", label="id", isPK=true),
		@Column(name="productcode", attrName="productcode", label="产品编码"),
		@Column(name="productname", attrName="productname", label="产品名称"),
		@Column(name="price", attrName="price", label="产品价格"),
	}, orderBy="a.id DESC"
)
public class StPriceMaintain extends DataEntity<StPriceMaintain> {
	
	private static final long serialVersionUID = 1L;
	private String productcode;		// 产品编码
	private String productname;		// 产品名称
	private BigDecimal price;		// 产品价格
	
	public StPriceMaintain() {
		this(null);
	}

	public StPriceMaintain(String id){
		super(id);
	}
	
	@Length(min=0, max=20, message="产品编码长度不能超过 20 个字符")
	public String getProductcode() {
		return productcode;
	}

	public void setProductcode(String productcode) {
		this.productcode = productcode;
	}
	
	@Length(min=0, max=20, message="产品名称长度不能超过 20 个字符")
	public String getProductname() {
		return productname;
	}

	public void setProductname(String productname) {
		this.productname = productname;
	}
	
	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}
	
}